﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CMS_Control_GetPic : System.Web.UI.UserControl
{
    private string _pic = "";

    public string Pic
    {
        get
        {
            return HidPic.Value;
        }
        set
        {
            HidPic.Value = value;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Pic.Trim().Length > 0)
            {
                string path = System.Configuration.ConfigurationManager.AppSettings["UsasInformationIIS"] + "Pic/" + Pic;
                //string path = Request.Url.Scheme + "://localhost/Usasinformation/Pic/" + Pic;
                Page.ClientScript.RegisterStartupScript(GetType(), "Msg", "Get('" + Pic + "','" + path + "')", true);
            }
        }
    }
}
